// 注册全局组件
import PageTools from '@/components/PageTools'
import UploadExcel from '@/components/UploadExcel'
// 使用 Vue.component(组件名称, 组件的对象)
import ImageUpload from '@/components/ImageUpload'
import ScreenFull from '@/components/ScreenFull'
import ThemePicker from '@/components/ThemePicker'
import Lang from '@/components/Lang'
import TagsView from '@/components/TagsView'

export default {
  install(Vue) {
    // 这个函数是在当前对象被执行 Vue.use的后面默认执行
    // 可以接收到一个参数就是Vue本身
    console.log('Vue.use触发了install 函数')
    // 使用Vue.component(组件名称,组件的对象)
    Vue.component('PageTools', PageTools)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('ImageUpload', ImageUpload)
    Vue.component('ScreenFull', ScreenFull)
    Vue.component('ThemePicker', ThemePicker)
    Vue.component('Lang', Lang)
    Vue.component('TagsView', TagsView)
  }
}
